﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Finance
{
    /// <summary>
    /// 金融商贷流水
    /// </summary>
    public class FinanceBusinessLoanRunnings : EntityBase<int>
    {
        /// <summary>
        /// 金融总流水ID
        /// </summary>
        public int FinanceRunningsID { get; set; }
        /// <summary>
        /// 贷款银行
        /// </summary>
        public string LoanBank { get; set; }
        /// <summary>
        /// 贷款金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal LoanAmount { get; set; }
        /// <summary>
        /// 贷款年限
        /// </summary>
        public int LoanYearNumber { get; set; }
        /// <summary>
        /// 面签时间
        /// </summary>
        public DateTime ContractTime { get; set; }
        /// <summary>
        /// 面签状态 0未分配  1进行中  2已完成  3异常
        /// </summary>
        public int ContractState { get; set; }
        /// <summary>
        /// 面签说明
        /// </summary>
        public string ContractRemark { get; set; }
        /// <summary>
        /// 面签操作员
        /// </summary>
        public int ContractStaffID { get; set; }
        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime ApproveTime { get; set; }
        /// <summary>
        /// 审批状态 0未分配  1进行中  2已完成  3异常
        /// </summary>
        public int ApproveState { get; set; }
        /// <summary>
        /// 审批说明
        /// </summary>
        public string ApproveRemark { get; set; }
        /// <summary>
        /// 审批操作员
        /// </summary>
        public int ApproveStaffID { get; set; }
        /// <summary>
        /// 放款时间
        /// </summary>
        public DateTime ProvideTime { get; set; }
        /// <summary>
        /// 放款状态 0未分配  1进行中  2已完成  3异常
        /// </summary>
        public int ProvideState { get; set; }
        /// <summary>
        /// 放款说明
        /// </summary>
        public string ProvideRemark { get; set; }
        /// <summary>
        /// 放款操作员
        /// </summary>
        public int ProvideStaffID { get; set; }

    }
}
